<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><PHP>echo getSysTitle();</PHP></title>
<link href="__CSS__/table.css" rel="stylesheet" type="text/css" />
<script src="__JS__/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="__JS__/NiceForms/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="__JS__/NiceForms/niceforms-default.css" />
<link href="__CSS__/main.css" rel="stylesheet" type="text/css" />
<script src="__JS__/popup/popup.js"></script>
<script src="__JS__/popup/user.js"></script>
<script>
$(document).ready(function() {
	
	
	//查询
	$("#submit").bind("click",function(){
		var _url=window.location.href;
		var _list=_url.split('?');
		var _http=_list[0];
		var _pList=_list[1].split('&');
		var _usePara=[];
		for(var i=0;i<_pList.length;i++ ){
			var _p=_pList[i];
			var _t=_p.split('=')[0];
			if(_t=='g' || _t=='m' || _t=='a' ||_t=='upage'/*|| _t=="p"*/){
				_usePara.push(_p);
			}
		}
		
		var _newHttp=_http+"?"+_usePara.join('&');
		
		_newHttp+="&U_NAME="+encodeURI($("#U_NAME").val())+"&U_RNAME="+encodeURI($("#U_RNAME").val());
		
		window.location.href=_newHttp;
		
	});
	
	//指派
	$("#zhipaiButton").bind("click",function(){
		var list= $('input:radio[name="checkData"]:checked').val(); 
		 if(list){
			 var url="o_id={$o_id}&u_id="+list+"&rd="+Math.random();
			// alert(url);
			 
				$.ajax({
					   type: "POST",
					   url: "?g=Home&m=Order&a=saveWorker",
					   data: url,
					   dataType:'text',
					   success: function(msg){
						 if(msg=="y"){
							 alert('安装人员指派成功');
							 parent.window.location.reload();
						 }else{
							 alert('安装人员指派失败');
						 }
					   }
				});
		 }else{
			 alert('请选择安装人员');
		 }
	});
	
} );
function addBgDialog(o_id){
	var url="?g=Admin&m=Order&a=viewBgXg&O_ID="+o_id;
	pDialog("查看详情",url,600,480);
}
function openDialog(url){
	pDialog('',url,500,380);
}
function dialogClose(){
	pclose();
}


</script>
<style>
.styleTH{background:url(__PUBLIC__/images/home/th-td.png) repeat-x;font-size:12px;font-weight:bold;text-align:center;}
td{word-wrap:break-word;background-color:#F9F9F9}
.content1{
	background-color:#F9F9F9;
	width:550px;
	_width:550px;
	
	margin:0px;
	padding:0px;
	/*float:left;*/
}
.content1 table td{
	
	height:25px;
}
.content1 table th{
	
	height:30px;
	color:#FF7625;
}
</style>
</head>

<body style="background-color:#F9F9F9">

<div class="content1">
<form class="niceform12">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
  	<td align="center">
	  		<table  border="0" cellpadding="0" cellspacing="0" bgcolor="#a8c7ce">
	  			<tr>
	  				<td bgcolor="#FFFFFF"><span class="STYLE10"　>会员名：</span></td>
	  				<td bgcolor="#FFFFFF" align="left">
	  					<input  type="text" name="U_NAME" id="U_NAME" value="{$U_NAME}" style="width:90px;"></input>
	  				</td>
	  				<td bgcolor="#FFFFFF"><span class="STYLE10">姓名：</span></td>
	  				<td bgcolor="#FFFFFF" align="left">
	  					<input  type="text" name="U_RNAME" id="U_RNAME" value="{$U_RNAME}" style="width:90px;"></input>
	  				</td>
	  				<td bgcolor="#FFFFFF">
	  					<div style="margin-left:10px;">
	  						<img src="__PUBLIC__/images/home/chaxun.png" id="submit" name="submit" align="absmiddle" alt="" />
	  					</div>
	  				</td>
	  			</tr>
	  		</table>
  	</td>
  </tr>
  <tr>
    <td>
    
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" >
      <tr>
      	<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div align="center">
	          
	        </div></td>
        <td width="" height="20"  class="styleTH"><span class="STYLE10">会员名</span></td>
        <td width=""   height="20"  class="styleTH"><span class="STYLE10">姓名</span></td>
        <td width=""   height="20"  class="styleTH"><span class="STYLE10">手机</span></td>
        <td width=""  height="20"  class="styleTH"><span class="STYLE10">固定电话</span></td>
        <td width=""  height="20"  class="styleTH"><span class="STYLE10">邮箱</span></td>
        
        
      </tr>
      <volist name="userList" id="data">
		<tr>
	        <td height="20" bgcolor="#FFFFFF"><div align="center">
	          <input type="radio" name="checkData" id="checkData_{$data.U_ID}" value="{$data.U_ID}" />
	        </div></td>
	       <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">{$data.U_NAME}</span></div></td>
	        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">{$data.U_RNAME}</span></div></td>
	        
	        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.U_MOBILE}</div></td>
	        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.U_PHONE}</div></td>
	        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">{$data.U_EMAIL}</div></td>
	        
	     
	        
      	</tr>
      </volist>
    </table>
    
    </td>
  </tr>
  <tr>
  	<td height="20" bgcolor="#FFFFFF" class="pageToolbar" align="left">{$page}</td>
  </tr>
    </table>

<div id="zhipaiDiv" style="text-align:center">
	<input type="button" id="zhipaiButton" style="width:60px;height:30px;text-align:center;padding:2px 4px;" value="指派" />
	
</div>
</form>
</div>

</body>